{% extends ".html" %}
{% block title %}
    添加用户
{% endblock %}
{% block content %}

    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">添加学生信息</h3>
        </div>
        <div class="panel-body">
            <div class="container">
                <form method="post">
                    {% for obj in form %}
                        <div class="form-group">
                            <label>{{ obj.label }}</label>
                            {{ obj }}
                        <span style="color :red">{{ obj.errors.code }}</span>
                        </div>
                    {% endfor %}
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-default">添加</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

{% endblock %}